tools: gtracestate: fix several problems
authorWei Gang <gang.wei@intel.com>
Thu, 3 Mar 2011 18:51:13 +0000 (18:51 +0000)
committerWei Gang <gang.wei@intel.com>
Thu, 3 Mar 2011 18:51:13 +0000 (18:51 +0000)
commitb99358eeb35d8228c66543e07a07cc526a25bdf0
tree9c62631cac4c2e6a43dfe8d0a17048c2f3bf85d2
parentaa6e4a53f6145fcd49146e488cdda906b97e4d1d
tools: gtracestate: fix several problems

Fixed problems include:
  * previously just print out a error instead of help info
    while running without cmdline parameters.
  * -u & -n lead to Segmentation fault.
  * -c and then use default ranges, the default ranges is not
        50us... but 50000/tsc2us....

Signed-off-by: Wei Gang <gang.wei@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/misc/gtracestat.c